﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Mall.List" %>
<%@ Register Src="usercontrol/Top.ascx" TagName="uchead" TagPrefix="headuc" %>
<%@ Register Src="usercontrol/Footer.ascx" TagName="ucfooter" TagPrefix="footeruc" %>
<%
    ///商品dt
    //头部广告
    MODEL.MAD model_ad = new MODEL.MAD();
    model_ad = modelad;
    string urlmore = "?t=mc";
    string url = "?t=mc";
    if (!string.IsNullOrEmpty(action)) {

        url = url + "&action=" + action;
    }
    if (!string.IsNullOrEmpty(page)) {
        urlmore = urlmore + "&page=" + page;
    }
    if(!string.IsNullOrEmpty(id)){

        url = url + "&id=" + id;
        urlmore = urlmore + "&id=" + id;
    }
     %>
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD id=ctl00_Head1 conntection="close"><TITLE>列表</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name="description" content="打造中国外贸商品第一网络内销商城,女装-">
<meta name="keywords" content="打造中国外贸商品第一网络内销商城,女装-">
<LINK media=screen href="/content/images/mkl/global.css" type=text/css rel=stylesheet>
<SCRIPT src="/content/images/mkl/jquery-1.3.2.min.js" type=text/javascript></SCRIPT>
<LINK media=screen href="/content/images/mkl/list2.css" type=text/css 
rel=stylesheet><LINK media=screen href="/content/images/mkl/leftlist.css" type=text/css 
rel=stylesheet><LINK media=print href="/content/images/mkl/list-print3.css" 
type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.17092" name=GENERATOR></HEAD>
<BODY id=N1>
<headuc:uchead ID="headuc" runat="server" />
 
<DIV class=crumb><%=str_daohang%>
<DIV class="viewCata fr"><A 
href="#"></A></DIV></DIV><!-- banner -->
<DIV class=wrap>
<DIV class=col_2_a>
<DIV class="bor1 mb10" id=sort-nav>
<DIV class=backcata></DIV>
 
 
<%=str_html_left_class_list%>
 
</UL>
</DIV>
  <DIV class="bor1 mb10 mt10" id=brand-nav >
<DIV class="h2 wh2">快速通道</DIV>
<UL>
    <LI  class=beauty><A href="/list.aspx?action=tejia"><SPAN>特价商品</SPAN></A> 
    <LI  class=beauty><A href="/list.aspx?action=hot"><SPAN>热销商品</SPAN></A> 
    <LI  class=beauty><A href="/list.aspx?action=new"><SPAN>最新商品</SPAN></A> 
 
</LI></UL></DIV>
<DIV class="bor1 mb10 mt10" id=brand-nav>
<DIV class="h2 wh2">全部分类</DIV>
<UL>
<%=str_html_left_allclass%>
</UL></DIV>
  <DIV class="bor1 mb10 mt10"  >
<DIV class="h2 wh2">最近浏览</DIV>
<dl>
<%=html_str_newsmcview_left_his%></dd></dl></DIV>
 
</DIV>
<DIV class=col_2_b><A 
href="<%=model_ad.Adurl %>" 
target=_blank><IMG src="<%=model_ad.Adpic %>"></A> 
<DIV id=rec></DIV>
<DIV class="handlebox clearfix">
  <DL class=taxis>
  <DT>排列方式 </DT>
  <DD ><A 
  href="<%=urlmore %>&action=hot">畅销</A> </DD>
  <DD><A href= "<%=urlmore %>&action=new">新品</A> </DD>
  <DD  ><A href="<%=urlmore %>&action=tejia">价格</A> </DD></DL>
</DIV>
<UL class="item clearfix">
<%foreach(System.Data.DataRow dr in dt.Rows){
      string imgurl = string.Empty;
      imgurl =Convert.IsDBNull(dr["img_big"])==true?",": dr["img_big"].ToString();
      string[] imgurls = imgurl.Split(new char[] { ',' });
      imgurl = imgurls[1];
      string prices = (Convert.ToDecimal(dr["price"].ToString()) * Convert.ToDecimal("1.3")).ToString();
      %>	
  <LI style=" float:left; "><A href="/views.aspx?Productid=<%=dr["id"].ToString() %>"   target=_blank><img alt='<%=dr["productname"] %>' src='<%=imgurl %>' width="170"  border=0></a>
<SPAN   class=title style="width:160px; display:block; overflow:hidden; float:left; "><A style=" width:500px; display:block; text-align:left;" href="/views.aspx?Productid=<%=dr["id"].ToString() %>"   target=_blank><%=dr["productname"].ToString()%></a></SPAN>
 
  <P class=opr style=" margin-top:18px; display:block"><DEL><%=prices%></DEL> </P> <P class=npr><SPAN class=hl2><%=dr["Price"].ToString() %></SPAN> </P> </P>
</LI>
<% }%>
  </UL>
  <div style=" clear:both;"></div>
<DIV class="mb10 clearfix">
<DIV class="goto fr">
</DIV>
<DIV class="pagination fr" id=ctl00_phMainBody_pager1>
<table  width=748border=0 align=center>
<form method=get onsubmit="document.location = '<%=url %>&Page='+ this.page.value;return false;"><TR>
<TD align=left width=250>
<p align=center>
<IMG height=16 src=/content/images/search_dot_01.gif width=14> 
&nbsp;&nbsp;&nbsp;&nbsp;
 共有<%=countt %>个商品
&nbsp;&nbsp;&nbsp;&nbsp;
 页次：<%=page %>/<%=pagecount %>页
</TD>
<TD align=right width=434>
<%if (Convert.ToInt32(page) == 1)
  { %>
首页 
上页 
<%}
  else
  { %>
  <A HREF="<%=url %>&Page=1">首页</A> 
<A HREF="<%=url %>&Page=<%=(Convert.ToInt32(page)-1).ToString() %>">上页</A> 
<%} %>

<%if (Convert.ToInt32(page) == Convert.ToInt32(pagecount))
  { %>
下页 
末页 
<%}
  else
  { %>
  <A HREF="<%=url %>&Page=<%=(Convert.ToInt32(page)+1).ToString() %>">下页</A> 
  <A HREF="<%=url %>&Page=<%=pagecount %>">末页</A> 

<%} %>
 转到<INPUT TYEP=TEXT NAME=page SIZE=1 Maxlength=5 VALUE=<%=page %>>页
<INPUT type=image src=/content/images/go.gif style="font-size: 9pt" value=GO></TD>
</TR></form>
</table>
 
</DIV></DIV></DIV></DIV>
<footeruc:ucfooter ID="footeruc" runat="server" />
<SCRIPT 
src="/content/images/mkl/comm.js" 
type=text/javascript></SCRIPT>
</BODY></HTML>


